Optimal. Leaf size=73 \[ \frac {8 i a^2 \sec ^7(c+d x)}{63 d (a+i a \tan (c+d x))^{7/2}}+\frac {2 i a \sec ^7(c+d x)}{9 d (a+i a \tan (c+d x))^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {3575, 3574}
\begin {gather*} \frac {8 i a^2 \sec ^7(c+d x)}{63 d (a+i a \tan (c+d x))^{7/2}}+\frac {2 i a \sec ^7(c+d x)}{9 d (a+i a \tan (c+d x))^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3574
Rule 3575
Rubi steps
\begin {align*} \int \frac {\sec ^7(c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx &=\frac {2 i a \sec ^7(c+d x)}{9 d (a+i a \tan (c+d x))^{5/2}}+\frac {1}{9} (4 a) \int \frac {\sec ^7(c+d x)}{(a+i a \tan (c+d x))^{5/2}} \, dx\\ &=\frac {8 i a^2 \sec ^7(c+d x)}{63 d (a+i a \tan (c+d x))^{7/2}}+\frac {2 i a \sec ^7(c+d x)}{9 d (a+i a \tan (c+d x))^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.51, size = 80, normalized size = 1.10 \begin {gather*} \frac {2 \sec ^5(c+d x) (i \cos (2 (c+d x))+\sin (2 (c+d x))) (-11 i+7 \tan (c+d x))}{63 a d (-i+\tan (c+d x)) \sqrt {a+i a \tan (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.83, size = 117, normalized size = 1.60
method | result | size |
default | \(\frac {2 \left (32 i \left (\cos ^{5}\left (d x +c \right )\right )+32 \sin \left (d x +c \right ) \left (\cos ^{4}\left (d x +c \right )\right )-4 i \left (\cos ^{3}\left (d x +c \right )\right )+12 \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )-17 i \cos \left (d x +c \right )-7 \sin \left (d x +c \right )\right ) \sqrt {\frac {a \left (i \sin \left (d x +c \right )+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}}{63 d \cos \left (d x +c \right )^{4} a^{2}}\) | \(117\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 488 vs. \(2 (57) = 114\).
time = 0.43, size = 488, normalized size = 6.68 \begin {gather*} -\frac {2 \, {\left (-11 i \, \sqrt {a} - \frac {30 \, \sqrt {a} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {12 i \, \sqrt {a} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - \frac {86 \, \sqrt {a} \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {9 i \, \sqrt {a} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {108 \, \sqrt {a} \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {108 \, \sqrt {a} \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} - \frac {9 i \, \sqrt {a} \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}} - \frac {86 \, \sqrt {a} \sin \left (d x + c\right )^{9}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{9}} + \frac {12 i \, \sqrt {a} \sin \left (d x + c\right )^{10}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{10}} - \frac {30 \, \sqrt {a} \sin \left (d x + c\right )^{11}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{11}} + \frac {11 i \, \sqrt {a} \sin \left (d x + c\right )^{12}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{12}}\right )} {\left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {3}{2}} {\left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - 1\right )}^{\frac {3}{2}}}{63 \, {\left (a^{2} - \frac {6 \, a^{2} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {15 \, a^{2} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {20 \, a^{2} \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} + \frac {15 \, a^{2} \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}} - \frac {6 \, a^{2} \sin \left (d x + c\right )^{10}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{10}} + \frac {a^{2} \sin \left (d x + c\right )^{12}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{12}}\right )} d {\left (-\frac {2 i \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - 1\right )}^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.42, size = 102, normalized size = 1.40 \begin {gather*} -\frac {32 \, \sqrt {2} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} {\left (-9 i \, e^{\left (2 i \, d x + 2 i \, c\right )} - 2 i\right )}}{63 \, {\left (a^{2} d e^{\left (8 i \, d x + 8 i \, c\right )} + 4 \, a^{2} d e^{\left (6 i \, d x + 6 i \, c\right )} + 6 \, a^{2} d e^{\left (4 i \, d x + 4 i \, c\right )} + 4 \, a^{2} d e^{\left (2 i \, d x + 2 i \, c\right )} + a^{2} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sec ^{7}{\left (c + d x \right )}}{\left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 6.44, size = 91, normalized size = 1.25 \begin {gather*} \frac {32\,{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,9{}\mathrm {i}+2{}\mathrm {i}\right )\,\sqrt {a-\frac {a\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}-\mathrm {i}\right )\,1{}\mathrm {i}}{{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1}}}{63\,a^2\,d\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________